package com.aspose.cells.a.d;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.Map;

public class zcw implements Iterable {
   private com.aspose.cells.a.c.zaa a;
   private ArrayList b = new ArrayList();
   private Map c;

   public zcw(com.aspose.cells.a.c.zaa var1) {
      this.a = var1;
      this.c = com.aspose.cells.a.c.zg.a();
   }

   public void a(zcv var1) throws Exception {
      var1.d().b(0L);
      this.a.a(b(var1.a()), var1.d());
      var1.d().a();
      var1.a((com.aspose.cells.b.a.d.zh)null);
      this.c.put(var1.a(), var1);
   }

   public void b(zcv var1) throws Exception {
      var1.d().b(0L);
      com.aspose.cells.b.a.a.ze.a(this.b, (Object)var1);
      this.c.put(var1.a(), var1);
   }

   public void a() throws Exception {
      Iterator var1 = this.b.iterator();

      while(var1.hasNext()) {
         zcv var2 = (zcv)var1.next();
         var2.d().b(0L);
         this.a.a(b(var2.a()), var2.d());
         var2.d().a();
         var2.a((com.aspose.cells.b.a.d.zh)null);
      }

   }

   public zcv a(String var1) {
      return (zcv)this.c.get(var1);
   }

   public Iterator iterator() {
      return this.c.values().iterator();
   }

   private static String b(String var0) {
      return com.aspose.cells.b.a.zv.a(var0, '/');
   }
}
